from building import *

cwd  = GetCurrentDir()
path = [cwd + "/lvgl/src/"]

src  = Glob('lvgl/src/lv_core/*.c')
src  += Glob('lvgl/src/lv_draw/*.c')
src  += Glob('lvgl/src/lv_font/*.c')
src  += Glob('lvgl/src/lv_gpu/*.c')
src  += Glob('lvgl/src/lv_hal/*.c')
src  += Glob('lvgl/src/lv_misc/*.c')
src  += Glob('lvgl/src/lv_themes/*.c')
src  += Glob('lvgl/src/lv_widgets/*.c')

CPPDEFINES = [
        'RT_USING_NEWLIB',
        'HAVE_CCONFIG_H'
]

group = DefineGroup('lvgl_src', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
group = group + LinkBridge()

Return('group')